#include <unistd.h>
#include <stdlib.h>
main()
{
     int pc,pr;

        pc=fork();

  if(pc<0)                 

            printf("error ocurred!/n");

 else if(pc==0){          

           printf(" child ID :%d \n",getpid());

    }

   else{                   

            pr=wait(NULL);  

            printf("child ID : %d \n",pr);

   }               

    exit(0);

}
